package org.jeecg.modules.basedata.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.entity.basedata.BaseCustomer;
import org.jeecg.entity.basedata.BaseRoom;
import org.jeecg.entity.basedata.BaseTenant;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.model.SysDepartTreeModel;
import org.jeecg.vo.basedata.BaseTenantPage;

import java.util.List;

/**
 * @Description: 租户
 * @Author: jeecg-boot
 * @Date:   2019-07-30
 * @Version: V1.0
 */
public interface IBaseTenantService extends IService<BaseTenant> {
    public Page<BaseTenantPage> getBaseTenantList(Page<BaseTenantPage> page, BaseTenantPage tenantPage);

    List<SysDepartTreeModel> queryTenantTreeList(String menuPath);

    public List<SysDepartTreeModel> querFloorTreList();

    public String  getByTenantId(String roomId);

    public BaseTenant getTenantByRoomId(String roomId);

    public String  getByCustomerId(String roomId);

    void addBatchTenant(List<BaseRoom> roomList, List<BaseTenant> tenantList);

    BaseTenant detailById(String id,String methodId);

    List<BaseTenant> getTenant(BaseTenant baseTenant);

}
